﻿using System;
using System.Collections.Generic;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    /// <summary>
    /// 入库垛信息
    /// </summary>
    public partial class TStackingStorage
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }
        public string? Code { get; set; }
        public string? WarehouseCode { get; set; }
        /// <summary>
        /// 库房名称
        /// </summary>
        public string? WarehouseName { get; set; }
        public string? AreaCode { get; set; }
        public string? AreaName { get; set; }
        /// <summary>
        /// 关联单详情Id
        /// </summary>
        public int? RelatedOrderDetailId { get; set; }
        /// <summary>
        /// 单据类型Id
        /// </summary>
        public int? BillType { get; set; }
        /// <summary>
        /// 状态：0-失效；1-生效 2-上架；
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 垛条码
        /// </summary>
        public string PalletBarcode { get; set; } = null!;
        /// <summary>
        /// 子托盘数，没有子托盘可以是0
        /// </summary>
        public int? SubTrayQty { get; set; }
        /// <summary>
        /// 包装数量/箱数量
        /// </summary>
        public int? PackQty { get; set; }
        /// <summary>
        /// 货品数量
        /// </summary>
        public decimal? Qty { get; set; }
        /// <summary>
        /// 预留分配的收货仓位
        /// </summary>
        public string? ExpectedLocation { get; set; }
        /// <summary>
        /// 垛总长：单位厘米
        /// </summary>
        public int? TotalLength { get; set; }
        /// <summary>
        /// 垛总宽：单位厘米
        /// </summary>
        public int? TotalWidth { get; set; }
        /// <summary>
        /// 垛总高：单位厘米
        /// </summary>
        public int? TotalHeight { get; set; }
        /// <summary>
        /// 垛体积：单位立方厘米
        /// </summary>
        public int? TotalVolume { get; set; }
        /// <summary>
        /// 垛重量：单位千克
        /// </summary>
        public decimal? TotalWeight { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 先入先出日期时间
        /// </summary>
        public DateTime? Fifodate { get; set; }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public int? CreateUserId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateUserName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyDate { get; set; }
        /// <summary>
        /// 修改人Id
        /// </summary>
        public int? ModifyUserId { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? ModifyUserName { get; set; }
        /// <summary>
        /// 物料Id
        /// </summary>
        public long? MaterialId { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string? MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string? MaterialName { get; set; }
        /// <summary>
        /// 物料批次信息Id
        /// </summary>
        public int? MaterialKeyId { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        public string? BatchNo { get; set; }
        public string? CacheLocation { get; set; }

        /// <summary>
        /// 委托单号 
        /// </summary>
        public string OrderNo { get; set; }

        /// <summary>
        /// 标签地址
        /// </summary>
        public string? TagIndex { get; set; }

        /// <summary>
        /// 墙号
        /// </summary>
        public string? NWall { get; set; }

        /// <summary>
        /// 设备序列号（控制器固定唯一码）
        /// </summary>
        public string? SeqNum { get; set; }

        /// <summary>
        /// 所属逻辑分区编号
        /// </summary>
        public string? LogicalPartCode { get; set; }
        public string? WoodPalletBarcode { get; set; }
        public bool? IsMultPallet { get; set; }
        public string? ParentPalletBarcode { get; set; }
    }
}
